package com.itheima.chapter01.circle;

//import com.sun.corba.se.impl.oa.toa.TransientObjectManager;
//输出随机数0-19
import java.util.Random;

public class demoRandom2 {
    public static void main(String[] args) {
        Random r =new Random();
        for (int i =1; i <=10 ; i++) {
            int num = r.nextInt(20);
            System.out.println(num);
        }
        System.out.println("----------------");
        for (int i = 1; i <10 ; i++) {
            int num = r.nextInt(20)+1;//随机数1-201
            System.out.println(num);
        }
    }
}
